package org.example.memora.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.memora.common.enumeration.ApplicationStatus;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("community_join_application") // 如果你用的是 MyBatis-Plus
public class CommunityJoinApplication {

    private Long id;

    private Long communityId;

    private Long userId;

    @Enumerated(EnumType.STRING)
    // 如果你用 JPA
    private ApplicationStatus status;

    private String reason;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;
}

